home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / ver_cont / cvs-1.8 / cvs-1 / cvs-1.8.1 / os2 / Makefile.in < prev    next >
Encoding:
Makefile  |  1996-05-06  |  9.4 KB  |  308 lines

  1. # Makefile for OS/2.  Generated from Makefile.in when CVS is
  2. # configured for a dist-build.  Configure never gets run on OS/2, so
  3. # we must include the generated Makefile in the distribution.  See the
  4. # `dist-dir' rule.
  5.  
  6. project: cvs.exe
  7. # .SUFFIXES .c .obj .exe
  8.  
  9. # path slash
  10. # Maintainers: always leave this set to "/", because `make dist' has
  11. # to work on Unix systems.  See os2/README to find out why we have
  12. # this var.
  13. SL = /
  14.  
  15. # Directory in which to install executables.
  16. install_dir = s:${SL}gnu${SL}util
  17.  
  18. # srcdir is usually "."
  19. srcdir     = @srcdir@
  20.  
  21. # top_srcdir is usually ".."
  22. top_srcdir = @top_srcdir@
  23.  
  24. lib_dir     = @top_srcdir@${SL}lib
  25. cvs_srcdir = @top_srcdir@${SL}src
  26.  
  27. # Do we need these?
  28. # prefix = /usr/local
  29. # exec_prefix = ${prefix}
  30.  
  31. # taken straight from the example project
  32. LIB = s:${SL}ibmcpp${SL}lib;s:${SL}toolkt21${SL}os2lib;
  33. CINC = -Is:${SL}ibmcpp${SL}include -Is:${SL}toolkt21${SL}c${SL}os2h
  34. # This says we are building an object file, not a full executable.
  35. OBJ_CFLAGS = -C+
  36. CFLAGS = -W3 -Wpro+rea+tru+use+ -Ti+ -Ss+ -Gd+ -Gm+ -G4 -Q+ -Sm ${CINC} \
  37.   -I${srcdir} -I${lib_dir} -I${cvs_srcdir} \
  38.   -DIBM_CPP -DHAVE_CONFIG_H \
  39.   -DTCPIP_IBM -Is:${SL}ibmtcpip${SL}include
  40.  
  41. # needed to make command-line wildcard expansion work right.  That's
  42. # right, DOS-descendants handle this from the program, not the shell.
  43. ARGVLIB = s:${SL}ibmcpp${SL}lib${SL}setargv.obj
  44.  
  45. # TCP/IP stuff
  46. TCPIPLIB = s:${SL}ibmtcpip${SL}lib${SL}tcp32dll.lib    s:${SL}ibmtcpip${SL}lib${SL}so32dll.lib
  47.  
  48.  
  49. # headers specific to OS/2
  50.  
  51. # We list OS2_HEADERS so we know what to include when we make dist-dir
  52. # here.
  53. OS2_HEADERS = \
  54.        ${srcdir}${SL}tcpip.h \
  55.        ${srcdir}${SL}config.h \
  56.        ${srcdir}${SL}options.h \
  57.        ${srcdir}${SL}pwd.h \
  58.        ${srcdir}${SL}dirent.h \
  59.        ${srcdir}${SL}rcmd.h \
  60.        ${srcdir}${SL}popen.h
  61.  
  62. # headers we use from the common src dir, ..${SL}src
  63. COMMON_HEADERS = \
  64.        ${cvs_srcdir}${SL}client.h \
  65.        ${cvs_srcdir}${SL}cvs.h \
  66.        ${cvs_srcdir}${SL}rcs.h \
  67.        ${cvs_srcdir}${SL}hash.h \
  68.        ${cvs_srcdir}${SL}myndbm.h \
  69.        ${cvs_srcdir}${SL}patchlevel.h \
  70.        ${cvs_srcdir}${SL}update.h \
  71.        ${cvs_srcdir}${SL}server.h \
  72.        ${cvs_srcdir}${SL}error.h
  73.  
  74. # sources specific to OS/2
  75. OS2_SOURCES = \
  76.        ${srcdir}${SL}mkdir.c \
  77.        ${srcdir}${SL}pwd.c \
  78.        ${srcdir}${SL}filesubr.c \
  79.        ${srcdir}${SL}dirent.c \
  80.        ${srcdir}${SL}run.c \
  81.        ${srcdir}${SL}stripslash.c \
  82.        ${srcdir}${SL}rcmd.c \
  83.        ${srcdir}${SL}waitpid.c \
  84.        ${srcdir}${SL}popen.c \
  85.        ${srcdir}${SL}porttcp.c \
  86.        ${srcdir}${SL}strippath.c \
  87.        ${srcdir}${SL}getdate.c \
  88.        ${srcdir}${SL}getpass.c
  89.  
  90. # sources we use from the common src dir, ..${SL}src
  91. COMMON_SOURCES = \
  92.        ${cvs_srcdir}${SL}add.c \
  93.        ${cvs_srcdir}${SL}admin.c \
  94.        ${cvs_srcdir}${SL}checkin.c \
  95.        ${cvs_srcdir}${SL}checkout.c \
  96.        ${cvs_srcdir}${SL}classify.c \
  97.        ${cvs_srcdir}${SL}client.c \
  98.        ${cvs_srcdir}${SL}commit.c \
  99.        ${cvs_srcdir}${SL}create_adm.c \
  100.        ${cvs_srcdir}${SL}cvsrc.c \
  101.        ${cvs_srcdir}${SL}diff.c \
  102.        ${cvs_srcdir}${SL}edit.c \
  103.        ${cvs_srcdir}${SL}entries.c \
  104.        ${cvs_srcdir}${SL}error.c \
  105.        ${cvs_srcdir}${SL}expand_path.c \
  106.        ${cvs_srcdir}${SL}fileattr.c \
  107.        ${cvs_srcdir}${SL}find_names.c \
  108.        ${cvs_srcdir}${SL}hash.c \
  109.        ${cvs_srcdir}${SL}history.c \
  110.        ${cvs_srcdir}${SL}ignore.c \
  111.        ${cvs_srcdir}${SL}import.c \
  112.        ${cvs_srcdir}${SL}lock.c \
  113.        ${cvs_srcdir}${SL}log.c \
  114.        ${cvs_srcdir}${SL}login.c \
  115.        ${cvs_srcdir}${SL}logmsg.c \
  116.        ${cvs_srcdir}${SL}main.c \
  117.        ${cvs_srcdir}${SL}mkmodules.c \
  118.        ${cvs_srcdir}${SL}modules.c \
  119.        ${cvs_srcdir}${SL}myndbm.c \
  120.        ${cvs_srcdir}${SL}no_diff.c \
  121.        ${cvs_srcdir}${SL}parseinfo.c \
  122.        ${cvs_srcdir}${SL}patch.c \
  123.        ${cvs_srcdir}${SL}rcs.c \
  124.        ${cvs_srcdir}${SL}rcscmds.c \
  125.        ${cvs_srcdir}${SL}recurse.c \
  126.        ${cvs_srcdir}${SL}release.c \
  127.        ${cvs_srcdir}${SL}remove.c \
  128.        ${cvs_srcdir}${SL}repos.c \
  129.        ${cvs_srcdir}${SL}root.c \
  130.        ${cvs_srcdir}${SL}rtag.c \
  131.        ${cvs_srcdir}${SL}scramble.c \
  132.        ${cvs_srcdir}${SL}server.c \
  133.        ${cvs_srcdir}${SL}status.c \
  134.        ${cvs_srcdir}${SL}subr.c \
  135.        ${cvs_srcdir}${SL}tag.c \
  136.        ${cvs_srcdir}${SL}update.c \
  137.        ${cvs_srcdir}${SL}watch.c \
  138.        ${cvs_srcdir}${SL}wrapper.c \
  139.        ${cvs_srcdir}${SL}vers_ts.c \
  140.        ${cvs_srcdir}${SL}version.c
  141. # end of $COMMON_SOURCES
  142.  
  143. # sources from ..${SL}lib
  144. LIB_SOURCES = \
  145.        ${lib_dir}${SL}getopt.c \
  146.        ${lib_dir}${SL}getopt1.c \
  147.        ${lib_dir}${SL}getline.c \
  148.        ${lib_dir}${SL}getwd.c \
  149.        ${lib_dir}${SL}savecwd.c \
  150.        ${lib_dir}${SL}sighandle.c \
  151.        ${lib_dir}${SL}yesno.c \
  152.        ${lib_dir}${SL}vasprintf.c \
  153.        ${lib_dir}${SL}xgetwd.c \
  154.        ${lib_dir}${SL}md5.c \
  155.        ${lib_dir}${SL}fnmatch.c \
  156.        ${lib_dir}${SL}regex.c
  157.  
  158. # object files from OS/2 sources
  159. OS2_OBJECTS = \
  160.        ${srcdir}${SL}mkdir.obj \
  161.        ${srcdir}${SL}pwd.obj \
  162.        ${srcdir}${SL}filesubr.obj \
  163.        ${srcdir}${SL}dirent.obj \
  164.        ${srcdir}${SL}run.obj \
  165.        ${srcdir}${SL}stripslash.obj \
  166.        ${srcdir}${SL}rcmd.obj \
  167.        ${srcdir}${SL}waitpid.obj \
  168.        ${srcdir}${SL}popen.obj \
  169.        ${srcdir}${SL}porttcp.obj \
  170.        ${srcdir}${SL}strippath.obj \
  171.        ${srcdir}${SL}getdate.obj \
  172.        ${srcdir}${SL}getpass.obj
  173.  
  174. # object files from ..${SL}src
  175. COMMON_OBJECTS = \
  176.        ${cvs_srcdir}${SL}add.obj \
  177.        ${cvs_srcdir}${SL}admin.obj \
  178.        ${cvs_srcdir}${SL}checkin.obj \
  179.        ${cvs_srcdir}${SL}checkout.obj \
  180.        ${cvs_srcdir}${SL}classify.obj \
  181.        ${cvs_srcdir}${SL}client.obj \
  182.        ${cvs_srcdir}${SL}commit.obj \
  183.        ${cvs_srcdir}${SL}create_adm.obj \
  184.        ${cvs_srcdir}${SL}cvsrc.obj \
  185.        ${cvs_srcdir}${SL}diff.obj \
  186.        ${cvs_srcdir}${SL}edit.obj \
  187.        ${cvs_srcdir}${SL}entries.obj \
  188.        ${cvs_srcdir}${SL}error.obj \
  189.        ${cvs_srcdir}${SL}expand_path.obj \
  190.        ${cvs_srcdir}${SL}fileattr.obj \
  191.        ${cvs_srcdir}${SL}find_names.obj \
  192.        ${cvs_srcdir}${SL}hash.obj \
  193.        ${cvs_srcdir}${SL}history.obj \
  194.        ${cvs_srcdir}${SL}ignore.obj \
  195.        ${cvs_srcdir}${SL}import.obj \
  196.        ${cvs_srcdir}${SL}lock.obj \
  197.        ${cvs_srcdir}${SL}log.obj \
  198.        ${cvs_srcdir}${SL}login.obj \
  199.        ${cvs_srcdir}${SL}logmsg.obj \
  200.        ${cvs_srcdir}${SL}main.obj \
  201.        ${cvs_srcdir}${SL}mkmodules.obj \
  202.        ${cvs_srcdir}${SL}modules.obj \
  203.        ${cvs_srcdir}${SL}myndbm.obj \
  204.        ${cvs_srcdir}${SL}no_diff.obj \
  205.        ${cvs_srcdir}${SL}parseinfo.obj \
  206.        ${cvs_srcdir}${SL}patch.obj \
  207.        ${cvs_srcdir}${SL}rcs.obj \
  208.        ${cvs_srcdir}${SL}rcscmds.obj \
  209.        ${cvs_srcdir}${SL}recurse.obj \
  210.        ${cvs_srcdir}${SL}release.obj \
  211.        ${cvs_srcdir}${SL}remove.obj \
  212.        ${cvs_srcdir}${SL}repos.obj \
  213.        ${cvs_srcdir}${SL}root.obj \
  214.        ${cvs_srcdir}${SL}rtag.obj \
  215.        ${cvs_srcdir}${SL}scramble.obj \
  216.        ${cvs_srcdir}${SL}server.obj \
  217.        ${cvs_srcdir}${SL}status.obj \
  218.        ${cvs_srcdir}${SL}subr.obj \
  219.        ${cvs_srcdir}${SL}tag.obj \
  220.        ${cvs_srcdir}${SL}update.obj \
  221.        ${cvs_srcdir}${SL}watch.obj \
  222.        ${cvs_srcdir}${SL}wrapper.obj \
  223.        ${cvs_srcdir}${SL}vers_ts.obj \
  224.        ${cvs_srcdir}${SL}version.obj
  225. # end of $COMMON_OBJECTS
  226.  
  227. # objects from ..${SL}lib
  228. LIB_OBJECTS = \
  229.        ${lib_dir}${SL}getopt.obj \
  230.        ${lib_dir}${SL}getopt1.obj \
  231.        ${lib_dir}${SL}getline.obj \
  232.        ${lib_dir}${SL}getwd.obj \
  233.        ${lib_dir}${SL}savecwd.obj \
  234.        ${lib_dir}${SL}sighandle.obj \
  235.        ${lib_dir}${SL}yesno.obj \
  236.        ${lib_dir}${SL}vasprintf.obj \
  237.        ${lib_dir}${SL}xgetwd.obj \
  238.        ${lib_dir}${SL}md5.obj \
  239.        ${lib_dir}${SL}fnmatch.obj \
  240.        ${lib_dir}${SL}regex.obj
  241.  
  242. SOURCES = ${COMMON_SOURCES} ${LIB_SOURCES} ${OS2_SOURCES}
  243. HEADERS = ${COMMON_HEADERS} ${OS2_HEADERS}
  244. OBJECTS = ${COMMON_OBJECTS} ${LIB_OBJECTS} ${OS2_OBJECTS}
  245.  
  246. DISTFILES = ${OS2_HEADERS} ${OS2_SOURCES} \
  247.   ${srcdir}${SL}README ${srcdir}${SL}ChangeLog \
  248.   ${srcdir}${SL}Makefile.in ${srcdir}${SL}.cvsignore \
  249.   ${srcdir}${SL}test-makefile Makefile
  250.  
  251. all:
  252.  
  253. .PHONY: all install uninstall
  254. all install uninstall:
  255.  
  256. .PHONY: tags TAGS
  257. tags TAGS:
  258.  
  259. .PHONY: ls
  260. ls:
  261.     @echo ${DISTFILES}
  262.  
  263. .PHONY: clean distclean realclean mostlyclean
  264. clean distclean realclean mostlyclean:
  265.  
  266. .PHONY: lint
  267. lint:
  268.  
  269. .PHONY: dist-dir
  270. dist-dir:
  271.     mkdir ${DISTDIR}
  272.     for i in ${DISTFILES}; do \
  273.       ln $${i} ${DISTDIR}; \
  274.     done
  275.  
  276. # We don't have a real distclean or anything like that, but at least
  277. # we can get rid of the obj files and cvs.exe. 
  278. clean:
  279.     rm -f cvs.exe
  280.     rm -f ${srcdir}${SL}*.obj 
  281.     rm -f ${lib_dir}${SL}*.obj 
  282.     rm -f ${cvs_srcdir}${SL}*.obj 
  283.  
  284. install-cvs: cvs.exe
  285.     cp ${srcdir}${SL}cvs.exe ${install_dir}${SL}cvs.exe
  286.  
  287. %.obj: %.c
  288.     icc ${OBJ_CFLAGS} ${CFLAGS} /Fo$@ $*.c
  289.  
  290. # There seems to be no ICC option for specifying library locations, so
  291. # we must `set' the path in the compilation environment.  Urgkle. 
  292. cvs.exe: ${OBJECTS}
  293.     echo Creating icc.in...
  294.     echo -Q+ -Ti+ -Fe$@ -B"/batch" -B"/NOE" > icc.in
  295.     echo ${OS2_OBJECTS}                    >> icc.in
  296.     echo ${LIB_OBJECTS}                    >> icc.in
  297.     echo ${COMMON_OBJECTS}                 >> icc.in
  298.     echo ${TCPIPLIB}                       >> icc.in
  299.     echo ${ARGVLIB}                        >> icc.in
  300.     echo Creating icc.in... done.
  301.     set LIB=${LIB} & icc @icc.in
  302.  
  303. # cvs.obj: ${OBJECTS} ${SOURCES} ${HEADERS}
  304.  
  305. subdir = os2
  306. Makefile: ../config.status $(srcdir)/Makefile.in
  307.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  308.